package exercises.Charpter9;

interface MyInterface extends Fourth{
	void newFunc();
}

class Myclass {
	
	public void func4() {
		System.out.println("classfunc4");
		
	}

	
	public void func2() {
		System.out.println("func2");
		
	}

	
	public void func1() {
		System.out.println("1func1");
		
	}

	
	public void func3() {
		System.out.println("func3");
		
	}

	
	public void newFunc() {
		System.out.println("newfunc");
		
	}

}

public class Fourteen extends Myclass implements MyInterface {

	public static void main(String[] args){
		MyInterface test = new Fourteen();
		((MyInterface)test).func1();
	}
}
